
use "...\dhs_T3.dta", clear	   

*Panel A

foreach var of varlist years_sch primary_above middle_above enroll {
areg `var' avg_sunset_10 i.age, absorb(stateid) cluster(clusterid)
estadd ysumm
}


*Panel B

foreach var of varlist years_sch primary_above middle_above enroll {
areg `var' avg_sunset_10 i.age rural wealth_index latnum alt_dem, absorb(stateid) cluster(clusterid)
estadd ysumm
}

*Panel C

foreach var of varlist years_sch primary_above middle_above enroll{
areg `var' avg_sunset_10 i.age, absorb(distid) cluster(clusterid)
estadd ysumm
}

*Panel D

foreach var of varlist years_sch primary_above middle_above enroll {
areg `var' avg_sunset_10 i.age rural wealth_index latnum alt_dem , absorb(distid) cluster(clusterid)
estadd ysumm

}

